﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace new和override区别
{
    public class ParentClass : GrandClass//继承基类,看看override状态
    {
        public ParentClass()
        {
            Console.WriteLine("In ParentClass.Constructor");
        }
        public override void Method()//使用override,是说把基类的方法重新定义
        {
            Console.WriteLine("In ParentClass.Method() use override");
        }
    }
}
